package com.tenchael.iblog.repository;

import com.tenchael.iblog.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by tengzhizhang on 2017/12/25.
 */
public interface UserRepository extends JpaRepository<User, Long> {

	User findByUsername(String username);

	User findByUsernameOrEmail(String username, String email);

}
